/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

#define _DEF_CCY_CODE
#define _ZZDEBUG
#define _PROJ_DC

#region Using directives
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;

using Muki.Framework.Util;
using Muki.Framework.Business;
using Muki.Framework;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

#endregion

namespace Muki.UserPanel
{
	public class UID02201BE:EntityObject
	{
				private string _ITEM_NO="";
				private string _ITEM_NAME01="";
				private string _ITEM_NAME02="";
				private string _UOM_CODE="";
				private string _CAT_CODE="";
				private string _UOW_CODE="";
				private string _UOD_CODE="";
				private decimal _INN_QTY=0;
				private decimal _CTN_QTY=0;
				private decimal _INN_GW=0;
				private decimal _INN_NW=0;
				private decimal _INN_L=0;
				private decimal _INN_W=0;
				private decimal _INN_H=0;
				private decimal _INN_CBM=0;
				private decimal _INN_CFT=0;
				private decimal _CTN_GW=0;
				private decimal _CTN_NW=0;
				private decimal _CTN_L=0;
				private decimal _CTN_W=0;
				private decimal _CTN_H=0;
				private decimal _CTN_CBM=0;
				private decimal _CTN_CFT=0;

				[AttributeMapping(TableName="DIMTBLM",ColumnName="ITEM_NO")]
					public string ITEM_NO	{	get { return _ITEM_NO; }	set { _ITEM_NO = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="ITEM_NAME01")]
					public string ITEM_NAME01	{	get { return _ITEM_NAME01; }	set { _ITEM_NAME01 = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="ITEM_NAME02")]
					public string ITEM_NAME02	{	get { return _ITEM_NAME02; }	set { _ITEM_NAME02 = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="UOM_CODE")]
					public string UOM_CODE	{	get { return _UOM_CODE; }	set { _UOM_CODE = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="CAT_CODE")]
					public string CAT_CODE	{	get { return _CAT_CODE; }	set { _CAT_CODE = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="UOW_CODE")]
					public string UOW_CODE	{	get { return _UOW_CODE; }	set { _UOW_CODE = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="UOD_CODE")]
					public string UOD_CODE	{	get { return _UOD_CODE; }	set { _UOD_CODE = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_QTY")]
					public decimal INN_QTY	{	get { return _INN_QTY; }	set { _INN_QTY = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_QTY")]
					public decimal CTN_QTY	{	get { return _CTN_QTY; }	set { _CTN_QTY = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_GW")]
					public decimal INN_GW	{	get { return _INN_GW; }	set { _INN_GW = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_NW")]
					public decimal INN_NW	{	get { return _INN_NW; }	set { _INN_NW = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_L")]
					public decimal INN_L	{	get { return _INN_L; }	set { _INN_L = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_W")]
					public decimal INN_W	{	get { return _INN_W; }	set { _INN_W = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_H")]
					public decimal INN_H	{	get { return _INN_H; }	set { _INN_H = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_CBM")]
					public decimal INN_CBM	{	get { return _INN_CBM; }	set { _INN_CBM = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="INN_CFT")]
					public decimal INN_CFT	{	get { return _INN_CFT; }	set { _INN_CFT = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_GW")]
					public decimal CTN_GW	{	get { return _CTN_GW; }	set { _CTN_GW = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_NW")]
					public decimal CTN_NW	{	get { return _CTN_NW; }	set { _CTN_NW = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_L")]
					public decimal CTN_L	{	get { return _CTN_L; }	set { _CTN_L = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_W")]
					public decimal CTN_W	{	get { return _CTN_W; }	set { _CTN_W = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_H")]
					public decimal CTN_H	{	get { return _CTN_H; }	set { _CTN_H = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_CBM")]
					public decimal CTN_CBM	{	get { return _CTN_CBM; }	set { _CTN_CBM = value; } }
				[AttributeMapping(TableName="DIMTBLM",ColumnName="CTN_CFT")]
					public decimal CTN_CFT	{	get { return _CTN_CFT; }	set { _CTN_CFT = value; } }

		public List<LogisticException> Exceptions=new List<LogisticException>();

		private string _DATA_ATVT_CODE   = "";
		private string _DATA_STATUS_CODE = "Unproven";
		private string _NAVI_STATUS_CODE = "N";
		private string _ATVT_CODE        = "";
		private string _P_DATA           = "";
		private Wxf    _Wxf              = new Wxf();

		public  string DATA_STATUS_CODE { get { return _DATA_STATUS_CODE; } set { _DATA_STATUS_CODE = value; }  }
		public  string NAVI_STATUS_CODE { get { return _NAVI_STATUS_CODE; } set { _NAVI_STATUS_CODE = value; }  }
		public  string DATA_ATVT_CODE   { get { return _DATA_ATVT_CODE;   } set { _DATA_ATVT_CODE   = value; }  }
		public  string ATVT_CODE        { get { return _ATVT_CODE;        } set { _ATVT_CODE        = value; }  }
		public  string P_DATA           { get { return _P_DATA;           } set { _P_DATA = value;           }  }
		public  Wxf    Wxf              { get { return _Wxf;              } set { _Wxf = value;              }  }

		public string  PK_DATA
		{
			get
			{
				return ZZGeneral.Base64Encoder("ITEM_NO="+this.ITEM_NO); 
			}
		}

		private string _USECURITY_CODE1 = "";
		private string _USECURITY_CODE2 = "";
		private string _USECURITY_CODE3 = "";
		private string _USECURITY_CODE4 = "";
		private string _USECURITY_CODE5 = "";
		private string _USECURITY_CODE6 = "";
		private int    _USECURITY_RIGHT = 50;
		private string _UZADD_DATE      = "";
		private string _UZADD_USER      = "";
		private string _UZCHG_DATE      = "";
		private string _UZCHG_USER      = "";

		public string USECURITY_CODE1 { get { return _USECURITY_CODE1; } set { _USECURITY_CODE1 = value; }  }
		public string USECURITY_CODE2 { get { return _USECURITY_CODE2; } set { _USECURITY_CODE2 = value; }  }
		public string USECURITY_CODE3 { get { return _USECURITY_CODE3; } set { _USECURITY_CODE3 = value; }  }
		public string USECURITY_CODE4 { get { return _USECURITY_CODE4; } set { _USECURITY_CODE4 = value; }  }
		public string USECURITY_CODE5 { get { return _USECURITY_CODE5; } set { _USECURITY_CODE5 = value; }  }
		public string USECURITY_CODE6 { get { return _USECURITY_CODE6; } set { _USECURITY_CODE6 = value; }  }
		public int    USECURITY_RIGHT { get { return _USECURITY_RIGHT; } set { _USECURITY_RIGHT = value; }  }
		public string UZADD_DATE      { get { return _UZADD_DATE;      } set { _UZADD_DATE      = value; }  }
		public string UZADD_USER      { get { return _UZADD_USER;      } set { _UZADD_USER      = value; }  }
		public string UZCHG_DATE      { get { return _UZCHG_DATE;      } set { _UZCHG_DATE      = value; }  }
		public string UZCHG_USER      { get { return _UZCHG_USER;      } set { _UZCHG_USER      = value; }  }

	}
}
